package com.ourteam.system.dao;

import net.dao.BaseQueryBean;
import net.dao.BaseWhereCriterion;
import net.dao.IDataAccessInterface;

import org.apache.commons.lang.StringUtils;

import java.util.Arrays;
import java.util.List;
import java.util.Map;


/**
 * Template Name : DAO查询对象
 * Template Version : 1
 * Template Last Modfiy Date : Sat Aug 19 10:06:32 CST 2017
 * Auto Generate Date : 2018-07-31 15:13:24
  * Warning ! This file will be overwrite when regenerate !
  *
 */
public class SysResourceTypeDAOQueryBean extends BaseQueryBean {
    public SysResourceTypeDAOQueryBean() {
        super();
    }

    public SysResourceTypeDAOQueryBean(BaseQueryBean aQueryBean) {
        super(aQueryBean);
    }

    public SysResourceTypeDAOQueryBean(BaseQueryBean aQueryBean,
        Map tableReplaceMap) {
        super(aQueryBean, tableReplaceMap);
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();

        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }

        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        return new Criteria(this);
    }

    public void addIdSelectProperty() {
        addIdSelectProperty("id");
    }

    public void addIdSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysResourceTypeDAO.Id, aAlias);
        } else {
            addSelectProperty(ISysResourceTypeDAO.Id, "id");
        }
    }

    public void addConfigCodeSelectProperty() {
        addConfigCodeSelectProperty("configCode");
    }

    public void addConfigCodeSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysResourceTypeDAO.ConfigCode, aAlias);
        } else {
            addSelectProperty(ISysResourceTypeDAO.ConfigCode, "configCode");
        }
    }

    public void addConfigNameSelectProperty() {
        addConfigNameSelectProperty("configName");
    }

    public void addConfigNameSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysResourceTypeDAO.ConfigName, aAlias);
        } else {
            addSelectProperty(ISysResourceTypeDAO.ConfigName, "configName");
        }
    }

    public void addDomainIdSelectProperty() {
        addDomainIdSelectProperty("domainId");
    }

    public void addDomainIdSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysResourceTypeDAO.DomainId, aAlias);
        } else {
            addSelectProperty(ISysResourceTypeDAO.DomainId, "domainId");
        }
    }

    public void addRemarksSelectProperty() {
        addRemarksSelectProperty("remarks");
    }

    public void addRemarksSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysResourceTypeDAO.Remarks, aAlias);
        } else {
            addSelectProperty(ISysResourceTypeDAO.Remarks, "remarks");
        }
    }

    public void addStatusSelectProperty() {
        addStatusSelectProperty("status");
    }

    public void addStatusSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysResourceTypeDAO.Status, aAlias);
        } else {
            addSelectProperty(ISysResourceTypeDAO.Status, "status");
        }
    }

    public void addResourceTypeIdSelectProperty() {
        addResourceTypeIdSelectProperty("resourceTypeId");
    }

    public void addResourceTypeIdSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysResourceTypeDAO.ResourceTypeId, aAlias);
        } else {
            addSelectProperty(ISysResourceTypeDAO.ResourceTypeId,
                "resourceTypeId");
        }
    }

    public void addSortSelectProperty() {
        addSortSelectProperty("sort");
    }

    public void addSortSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysResourceTypeDAO.Sort, aAlias);
        } else {
            addSelectProperty(ISysResourceTypeDAO.Sort, "sort");
        }
    }

    public void addAllSelectProperties() {
        addIdSelectProperty();

        addConfigCodeSelectProperty();

        addConfigNameSelectProperty();

        addDomainIdSelectProperty();

        addRemarksSelectProperty();

        addStatusSelectProperty();

        addResourceTypeIdSelectProperty();

        addSortSelectProperty();
    }

    public static class Criteria extends BaseWhereCriterion<SysResourceTypeDAOQueryBean> {
        protected Criteria(SysResourceTypeDAOQueryBean aParentObject) {
            super(aParentObject);
        }

        public Criteria andIdIsNull() {
            addCriterion(ISysResourceTypeDAO.Id + " is null");

            return this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion(ISysResourceTypeDAO.Id + " is not null");

            return this;
        }

        public Criteria andIdIsNotEmpty() {
            addCriterion(ISysResourceTypeDAO.Id + " is not null AND " +
                ISysResourceTypeDAO.Id + " <> ''");

            return this;
        }

        public Criteria andIdIsEmpty() {
            addCriterion("(" + ISysResourceTypeDAO.Id + " is null OR " +
                ISysResourceTypeDAO.Id + " = '')");

            return this;
        }

        public Criteria andIdEqualTo(long value) {
            return andIdEqualTo(Long.valueOf(value));
        }

        public Criteria andIdEqualTo(java.lang.Long value) {
            addCriterion(ISysResourceTypeDAO.Id + " = ", value, "id");

            return this;
        }

        public Criteria andIdEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.Id);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.Id + " = ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdNotEqualTo(long value) {
            return andIdNotEqualTo(Long.valueOf(value));
        }

        public Criteria andIdNotEqualTo(java.lang.Long value) {
            addCriterion(ISysResourceTypeDAO.Id + " <>", value, "id");

            return this;
        }

        public Criteria andIdNotEqualToOrIsNull(long value) {
            return andIdNotEqualToOrIsNull(Long.valueOf(value));
        }

        public Criteria andIdNotEqualToOrIsNull(java.lang.Long value) {
            addCriterion(ISysResourceTypeDAO.Id + " is null OR " +
                ISysResourceTypeDAO.Id + " <>", value, "id");

            return this;
        }

        public Criteria andIdNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.Id);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.Id + " <> ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdGreaterThan(long value) {
            return andIdGreaterThan(Long.valueOf(value));
        }

        public Criteria andIdGreaterThan(java.lang.Long value) {
            addCriterion(ISysResourceTypeDAO.Id + " >", value, "id");

            return this;
        }

        public Criteria andIdGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.Id);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.Id + " > ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdGreaterThanOrEqualTo(long value) {
            return andIdGreaterThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andIdGreaterThanOrEqualTo(java.lang.Long value) {
            addCriterion(ISysResourceTypeDAO.Id + " >=", value, "id");

            return this;
        }

        public Criteria andIdGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.Id);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdGreaterThanOrEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.Id + " >= ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdLessThan(long value) {
            return andIdLessThan(Long.valueOf(value));
        }

        public Criteria andIdLessThan(java.lang.Long value) {
            addCriterion(ISysResourceTypeDAO.Id + " <", value, "id");

            return this;
        }

        public Criteria andIdLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.Id);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.Id + " < ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdLessThanOrEqualTo(long value) {
            return andIdLessThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andIdLessThanOrEqualTo(java.lang.Long value) {
            addCriterion(ISysResourceTypeDAO.Id + " <=", value, "id");

            return this;
        }

        public Criteria andIdLessThanOrEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.Id);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdLessThanOrEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.Id + " <= ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdIn(long[] values) {
            if (values.length == 1) {
                return andIdEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(ISysResourceTypeDAO.Id + " in", values, "id");

                return this;
            }
        }

        public Criteria andIdNotIn(long[] values) {
            if (values.length == 1) {
                return andIdNotEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(ISysResourceTypeDAO.Id + " not in", values, "id");

                return this;
            }
        }

        public Criteria andIdIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andIdEqualTo(values.get(0));
            } else {
                addCriterion(ISysResourceTypeDAO.Id + " in", values, "id");

                return this;
            }
        }

        public Criteria andIdNotIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andIdNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysResourceTypeDAO.Id + " not in", values, "id");

                return this;
            }
        }

        public Criteria andIdIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andIdEqualTo(values[0]);
            } else {
                addCriterion(ISysResourceTypeDAO.Id + " in",
                    Arrays.asList(values), "id");

                return this;
            }
        }

        public Criteria andIdNotIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andIdNotEqualTo(values[0]);
            } else {
                addCriterion(ISysResourceTypeDAO.Id + " not in",
                    Arrays.asList(values), "id");

                return this;
            }
        }

        public Criteria andIdIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.Id + " in ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.Id + " not in ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdBetween(long value1, long value2) {
            addCriterion(ISysResourceTypeDAO.Id + " between", value1, value2,
                "id");

            return this;
        }

        public Criteria andIdBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(ISysResourceTypeDAO.Id + " between", value1, value2,
                "id");

            return this;
        }

        public Criteria andIdNotBetween(long value1, long value2) {
            addCriterion(ISysResourceTypeDAO.Id + " not between", value1,
                value2, "id");

            return this;
        }

        public Criteria andIdNotBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(ISysResourceTypeDAO.Id + " not between", value1,
                value2, "id");

            return this;
        }

        public Criteria andConfigCodeIsNull() {
            addCriterion(ISysResourceTypeDAO.ConfigCode + " is null");

            return this;
        }

        public Criteria andConfigCodeIsNotNull() {
            addCriterion(ISysResourceTypeDAO.ConfigCode + " is not null");

            return this;
        }

        public Criteria andConfigCodeIsNotEmpty() {
            addCriterion(ISysResourceTypeDAO.ConfigCode + " is not null AND " +
                ISysResourceTypeDAO.ConfigCode + " <> ''");

            return this;
        }

        public Criteria andConfigCodeIsEmpty() {
            addCriterion("(" + ISysResourceTypeDAO.ConfigCode + " is null OR " +
                ISysResourceTypeDAO.ConfigCode + " = '')");

            return this;
        }

        public Criteria andConfigCodeEqualTo(String value) {
            addCriterion(ISysResourceTypeDAO.ConfigCode + " = ", value,
                "configCode");

            return this;
        }

        public Criteria andConfigCodeEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.ConfigCode);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andConfigCodeEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.ConfigCode + " = ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andConfigCodeNotEqualTo(String value) {
            addCriterion(ISysResourceTypeDAO.ConfigCode + " <>", value,
                "configCode");

            return this;
        }

        public Criteria andConfigCodeNotEqualToOrIsNull(String value) {
            addCriterion(ISysResourceTypeDAO.ConfigCode + " is null OR " +
                ISysResourceTypeDAO.ConfigCode + " <>", value, "configCode");

            return this;
        }

        public Criteria andConfigCodeNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.ConfigCode);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andConfigCodeNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.ConfigCode + " <> ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andConfigCodeGreaterThan(String value) {
            addCriterion(ISysResourceTypeDAO.ConfigCode + " >", value,
                "configCode");

            return this;
        }

        public Criteria andConfigCodeGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.ConfigCode);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andConfigCodeGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.ConfigCode + " > ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andConfigCodeGreaterThanOrEqualTo(String value) {
            addCriterion(ISysResourceTypeDAO.ConfigCode + " >=", value,
                "configCode");

            return this;
        }

        public Criteria andConfigCodeGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.ConfigCode);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andConfigCodeGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.ConfigCode + " >= ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andConfigCodeLessThan(String value) {
            addCriterion(ISysResourceTypeDAO.ConfigCode + " <", value,
                "configCode");

            return this;
        }

        public Criteria andConfigCodeLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.ConfigCode);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andConfigCodeLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.ConfigCode + " < ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andConfigCodeLessThanOrEqualTo(String value) {
            addCriterion(ISysResourceTypeDAO.ConfigCode + " <=", value,
                "configCode");

            return this;
        }

        public Criteria andConfigCodeLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.ConfigCode);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andConfigCodeLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.ConfigCode + " <= ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andConfigCodeLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysResourceTypeDAO.ConfigCode + " like",
                buffer.toString(), "configCode");

            return this;
        }

        public Criteria andConfigCodeNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysResourceTypeDAO.ConfigCode + " not like",
                buffer.toString(), "configCode");

            return this;
        }

        public Criteria andConfigCodeIn(List<String> values) {
            if (values.size() == 1) {
                return andConfigCodeEqualTo(values.get(0));
            } else {
                addCriterion(ISysResourceTypeDAO.ConfigCode + " in", values,
                    "configCode");

                return this;
            }
        }

        public Criteria andConfigCodeNotIn(List<String> values) {
            if (values.size() == 1) {
                return andConfigCodeNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysResourceTypeDAO.ConfigCode + " not in",
                    values, "configCode");

                return this;
            }
        }

        public Criteria andConfigCodeIn(String[] values) {
            if (values.length == 1) {
                return andConfigCodeEqualTo(values[0]);
            } else {
                addCriterion(ISysResourceTypeDAO.ConfigCode + " in",
                    Arrays.asList(values), "configCode");

                return this;
            }
        }

        public Criteria andConfigCodeNotIn(String[] values) {
            if (values.length == 1) {
                return andConfigCodeNotEqualTo(values[0]);
            } else {
                addCriterion(ISysResourceTypeDAO.ConfigCode + " not in",
                    Arrays.asList(values), "configCode");

                return this;
            }
        }

        public Criteria andConfigCodeIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.ConfigCode + " in ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andConfigCodeNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.ConfigCode + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andConfigCodeBetween(String value1, String value2) {
            addCriterion(ISysResourceTypeDAO.ConfigCode + " between", value1,
                value2, "configCode");

            return this;
        }

        public Criteria andConfigCodeNotBetween(String value1, String value2) {
            addCriterion(ISysResourceTypeDAO.ConfigCode + " not between",
                value1, value2, "configCode");

            return this;
        }

        public Criteria andConfigNameIsNull() {
            addCriterion(ISysResourceTypeDAO.ConfigName + " is null");

            return this;
        }

        public Criteria andConfigNameIsNotNull() {
            addCriterion(ISysResourceTypeDAO.ConfigName + " is not null");

            return this;
        }

        public Criteria andConfigNameIsNotEmpty() {
            addCriterion(ISysResourceTypeDAO.ConfigName + " is not null AND " +
                ISysResourceTypeDAO.ConfigName + " <> ''");

            return this;
        }

        public Criteria andConfigNameIsEmpty() {
            addCriterion("(" + ISysResourceTypeDAO.ConfigName + " is null OR " +
                ISysResourceTypeDAO.ConfigName + " = '')");

            return this;
        }

        public Criteria andConfigNameEqualTo(String value) {
            addCriterion(ISysResourceTypeDAO.ConfigName + " = ", value,
                "configName");

            return this;
        }

        public Criteria andConfigNameEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.ConfigName);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andConfigNameEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.ConfigName + " = ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andConfigNameNotEqualTo(String value) {
            addCriterion(ISysResourceTypeDAO.ConfigName + " <>", value,
                "configName");

            return this;
        }

        public Criteria andConfigNameNotEqualToOrIsNull(String value) {
            addCriterion(ISysResourceTypeDAO.ConfigName + " is null OR " +
                ISysResourceTypeDAO.ConfigName + " <>", value, "configName");

            return this;
        }

        public Criteria andConfigNameNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.ConfigName);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andConfigNameNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.ConfigName + " <> ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andConfigNameGreaterThan(String value) {
            addCriterion(ISysResourceTypeDAO.ConfigName + " >", value,
                "configName");

            return this;
        }

        public Criteria andConfigNameGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.ConfigName);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andConfigNameGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.ConfigName + " > ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andConfigNameGreaterThanOrEqualTo(String value) {
            addCriterion(ISysResourceTypeDAO.ConfigName + " >=", value,
                "configName");

            return this;
        }

        public Criteria andConfigNameGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.ConfigName);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andConfigNameGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.ConfigName + " >= ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andConfigNameLessThan(String value) {
            addCriterion(ISysResourceTypeDAO.ConfigName + " <", value,
                "configName");

            return this;
        }

        public Criteria andConfigNameLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.ConfigName);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andConfigNameLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.ConfigName + " < ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andConfigNameLessThanOrEqualTo(String value) {
            addCriterion(ISysResourceTypeDAO.ConfigName + " <=", value,
                "configName");

            return this;
        }

        public Criteria andConfigNameLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.ConfigName);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andConfigNameLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.ConfigName + " <= ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andConfigNameLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysResourceTypeDAO.ConfigName + " like",
                buffer.toString(), "configName");

            return this;
        }

        public Criteria andConfigNameNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysResourceTypeDAO.ConfigName + " not like",
                buffer.toString(), "configName");

            return this;
        }

        public Criteria andConfigNameIn(List<String> values) {
            if (values.size() == 1) {
                return andConfigNameEqualTo(values.get(0));
            } else {
                addCriterion(ISysResourceTypeDAO.ConfigName + " in", values,
                    "configName");

                return this;
            }
        }

        public Criteria andConfigNameNotIn(List<String> values) {
            if (values.size() == 1) {
                return andConfigNameNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysResourceTypeDAO.ConfigName + " not in",
                    values, "configName");

                return this;
            }
        }

        public Criteria andConfigNameIn(String[] values) {
            if (values.length == 1) {
                return andConfigNameEqualTo(values[0]);
            } else {
                addCriterion(ISysResourceTypeDAO.ConfigName + " in",
                    Arrays.asList(values), "configName");

                return this;
            }
        }

        public Criteria andConfigNameNotIn(String[] values) {
            if (values.length == 1) {
                return andConfigNameNotEqualTo(values[0]);
            } else {
                addCriterion(ISysResourceTypeDAO.ConfigName + " not in",
                    Arrays.asList(values), "configName");

                return this;
            }
        }

        public Criteria andConfigNameIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.ConfigName + " in ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andConfigNameNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.ConfigName + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andConfigNameBetween(String value1, String value2) {
            addCriterion(ISysResourceTypeDAO.ConfigName + " between", value1,
                value2, "configName");

            return this;
        }

        public Criteria andConfigNameNotBetween(String value1, String value2) {
            addCriterion(ISysResourceTypeDAO.ConfigName + " not between",
                value1, value2, "configName");

            return this;
        }

        public Criteria andDomainIdIsNull() {
            addCriterion(ISysResourceTypeDAO.DomainId + " is null");

            return this;
        }

        public Criteria andDomainIdIsNotNull() {
            addCriterion(ISysResourceTypeDAO.DomainId + " is not null");

            return this;
        }

        public Criteria andDomainIdIsNotEmpty() {
            addCriterion(ISysResourceTypeDAO.DomainId + " is not null AND " +
                ISysResourceTypeDAO.DomainId + " <> ''");

            return this;
        }

        public Criteria andDomainIdIsEmpty() {
            addCriterion("(" + ISysResourceTypeDAO.DomainId + " is null OR " +
                ISysResourceTypeDAO.DomainId + " = '')");

            return this;
        }

        public Criteria andDomainIdEqualTo(Long value) {
            addCriterion(ISysResourceTypeDAO.DomainId + " = ", value, "domainId");

            return this;
        }

        public Criteria andDomainIdEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.DomainId);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainIdEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.DomainId + " = ", subQueryBean, dao);

            return this;
        }

        public Criteria andDomainIdNotEqualTo(Long value) {
            addCriterion(ISysResourceTypeDAO.DomainId + " <>", value, "domainId");

            return this;
        }

        public Criteria andDomainIdNotEqualToOrIsNull(Long value) {
            addCriterion(ISysResourceTypeDAO.DomainId + " is null OR " +
                ISysResourceTypeDAO.DomainId + " <>", value, "domainId");

            return this;
        }

        public Criteria andDomainIdNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.DomainId);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainIdNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.DomainId + " <> ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andDomainIdGreaterThan(Long value) {
            addCriterion(ISysResourceTypeDAO.DomainId + " >", value, "domainId");

            return this;
        }

        public Criteria andDomainIdGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.DomainId);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainIdGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.DomainId + " > ", subQueryBean, dao);

            return this;
        }

        public Criteria andDomainIdGreaterThanOrEqualTo(Long value) {
            addCriterion(ISysResourceTypeDAO.DomainId + " >=", value, "domainId");

            return this;
        }

        public Criteria andDomainIdGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.DomainId);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainIdGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.DomainId + " >= ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andDomainIdLessThan(Long value) {
            addCriterion(ISysResourceTypeDAO.DomainId + " <", value, "domainId");

            return this;
        }

        public Criteria andDomainIdLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.DomainId);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainIdLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.DomainId + " < ", subQueryBean, dao);

            return this;
        }

        public Criteria andDomainIdLessThanOrEqualTo(Long value) {
            addCriterion(ISysResourceTypeDAO.DomainId + " <=", value, "domainId");

            return this;
        }

        public Criteria andDomainIdLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.DomainId);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainIdLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.DomainId + " <= ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andDomainIdIn(List<Long> values) {
            if (values.size() == 1) {
                return andDomainIdEqualTo(values.get(0));
            } else {
                addCriterion(ISysResourceTypeDAO.DomainId + " in", values,
                    "domainId");

                return this;
            }
        }

        public Criteria andDomainIdNotIn(List<Long> values) {
            if (values.size() == 1) {
                return andDomainIdNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysResourceTypeDAO.DomainId + " not in", values,
                    "domainId");

                return this;
            }
        }

        public Criteria andDomainIdIn(Long[] values) {
            if (values.length == 1) {
                return andDomainIdEqualTo(values[0]);
            } else {
                addCriterion(ISysResourceTypeDAO.DomainId + " in",
                    Arrays.asList(values), "domainId");

                return this;
            }
        }

        public Criteria andDomainIdNotIn(Long[] values) {
            if (values.length == 1) {
                return andDomainIdNotEqualTo(values[0]);
            } else {
                addCriterion(ISysResourceTypeDAO.DomainId + " not in",
                    Arrays.asList(values), "domainId");

                return this;
            }
        }

        public Criteria andDomainIdIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.DomainId + " in ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andDomainIdNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.DomainId + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andDomainIdBetween(Long value1, Long value2) {
            addCriterion(ISysResourceTypeDAO.DomainId + " between", value1,
                value2, "domainId");

            return this;
        }

        public Criteria andDomainIdNotBetween(Long value1, Long value2) {
            addCriterion(ISysResourceTypeDAO.DomainId + " not between", value1,
                value2, "domainId");

            return this;
        }

        public Criteria andRemarksIsNull() {
            addCriterion(ISysResourceTypeDAO.Remarks + " is null");

            return this;
        }

        public Criteria andRemarksIsNotNull() {
            addCriterion(ISysResourceTypeDAO.Remarks + " is not null");

            return this;
        }

        public Criteria andRemarksIsNotEmpty() {
            addCriterion(ISysResourceTypeDAO.Remarks + " is not null AND " +
                ISysResourceTypeDAO.Remarks + " <> ''");

            return this;
        }

        public Criteria andRemarksIsEmpty() {
            addCriterion("(" + ISysResourceTypeDAO.Remarks + " is null OR " +
                ISysResourceTypeDAO.Remarks + " = '')");

            return this;
        }

        public Criteria andRemarksEqualTo(String value) {
            addCriterion(ISysResourceTypeDAO.Remarks + " = ", value, "remarks");

            return this;
        }

        public Criteria andRemarksEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.Remarks);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.Remarks + " = ", subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksNotEqualTo(String value) {
            addCriterion(ISysResourceTypeDAO.Remarks + " <>", value, "remarks");

            return this;
        }

        public Criteria andRemarksNotEqualToOrIsNull(String value) {
            addCriterion(ISysResourceTypeDAO.Remarks + " is null OR " +
                ISysResourceTypeDAO.Remarks + " <>", value, "remarks");

            return this;
        }

        public Criteria andRemarksNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.Remarks);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.Remarks + " <> ", subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksGreaterThan(String value) {
            addCriterion(ISysResourceTypeDAO.Remarks + " >", value, "remarks");

            return this;
        }

        public Criteria andRemarksGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.Remarks);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.Remarks + " > ", subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksGreaterThanOrEqualTo(String value) {
            addCriterion(ISysResourceTypeDAO.Remarks + " >=", value, "remarks");

            return this;
        }

        public Criteria andRemarksGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.Remarks);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.Remarks + " >= ", subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksLessThan(String value) {
            addCriterion(ISysResourceTypeDAO.Remarks + " <", value, "remarks");

            return this;
        }

        public Criteria andRemarksLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.Remarks);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.Remarks + " < ", subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksLessThanOrEqualTo(String value) {
            addCriterion(ISysResourceTypeDAO.Remarks + " <=", value, "remarks");

            return this;
        }

        public Criteria andRemarksLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.Remarks);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.Remarks + " <= ", subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysResourceTypeDAO.Remarks + " like",
                buffer.toString(), "remarks");

            return this;
        }

        public Criteria andRemarksNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysResourceTypeDAO.Remarks + " not like",
                buffer.toString(), "remarks");

            return this;
        }

        public Criteria andRemarksIn(List<String> values) {
            if (values.size() == 1) {
                return andRemarksEqualTo(values.get(0));
            } else {
                addCriterion(ISysResourceTypeDAO.Remarks + " in", values,
                    "remarks");

                return this;
            }
        }

        public Criteria andRemarksNotIn(List<String> values) {
            if (values.size() == 1) {
                return andRemarksNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysResourceTypeDAO.Remarks + " not in", values,
                    "remarks");

                return this;
            }
        }

        public Criteria andRemarksIn(String[] values) {
            if (values.length == 1) {
                return andRemarksEqualTo(values[0]);
            } else {
                addCriterion(ISysResourceTypeDAO.Remarks + " in",
                    Arrays.asList(values), "remarks");

                return this;
            }
        }

        public Criteria andRemarksNotIn(String[] values) {
            if (values.length == 1) {
                return andRemarksNotEqualTo(values[0]);
            } else {
                addCriterion(ISysResourceTypeDAO.Remarks + " not in",
                    Arrays.asList(values), "remarks");

                return this;
            }
        }

        public Criteria andRemarksIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.Remarks + " in ", subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.Remarks + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksBetween(String value1, String value2) {
            addCriterion(ISysResourceTypeDAO.Remarks + " between", value1,
                value2, "remarks");

            return this;
        }

        public Criteria andRemarksNotBetween(String value1, String value2) {
            addCriterion(ISysResourceTypeDAO.Remarks + " not between", value1,
                value2, "remarks");

            return this;
        }

        public Criteria andStatusIsNull() {
            addCriterion(ISysResourceTypeDAO.Status + " is null");

            return this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion(ISysResourceTypeDAO.Status + " is not null");

            return this;
        }

        public Criteria andStatusIsNotEmpty() {
            addCriterion(ISysResourceTypeDAO.Status + " is not null AND " +
                ISysResourceTypeDAO.Status + " <> ''");

            return this;
        }

        public Criteria andStatusIsEmpty() {
            addCriterion("(" + ISysResourceTypeDAO.Status + " is null OR " +
                ISysResourceTypeDAO.Status + " = '')");

            return this;
        }

        public Criteria andStatusEqualTo(String value) {
            addCriterion(ISysResourceTypeDAO.Status + " = ", value, "status");

            return this;
        }

        public Criteria andStatusEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.Status);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.Status + " = ", subQueryBean, dao);

            return this;
        }

        public Criteria andStatusNotEqualTo(String value) {
            addCriterion(ISysResourceTypeDAO.Status + " <>", value, "status");

            return this;
        }

        public Criteria andStatusNotEqualToOrIsNull(String value) {
            addCriterion(ISysResourceTypeDAO.Status + " is null OR " +
                ISysResourceTypeDAO.Status + " <>", value, "status");

            return this;
        }

        public Criteria andStatusNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.Status);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.Status + " <> ", subQueryBean, dao);

            return this;
        }

        public Criteria andStatusGreaterThan(String value) {
            addCriterion(ISysResourceTypeDAO.Status + " >", value, "status");

            return this;
        }

        public Criteria andStatusGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.Status);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.Status + " > ", subQueryBean, dao);

            return this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(String value) {
            addCriterion(ISysResourceTypeDAO.Status + " >=", value, "status");

            return this;
        }

        public Criteria andStatusGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.Status);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.Status + " >= ", subQueryBean, dao);

            return this;
        }

        public Criteria andStatusLessThan(String value) {
            addCriterion(ISysResourceTypeDAO.Status + " <", value, "status");

            return this;
        }

        public Criteria andStatusLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.Status);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.Status + " < ", subQueryBean, dao);

            return this;
        }

        public Criteria andStatusLessThanOrEqualTo(String value) {
            addCriterion(ISysResourceTypeDAO.Status + " <=", value, "status");

            return this;
        }

        public Criteria andStatusLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.Status);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusLessThanOrEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.Status + " <= ", subQueryBean, dao);

            return this;
        }

        public Criteria andStatusLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysResourceTypeDAO.Status + " like",
                buffer.toString(), "status");

            return this;
        }

        public Criteria andStatusNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysResourceTypeDAO.Status + " not like",
                buffer.toString(), "status");

            return this;
        }

        public Criteria andStatusIn(List<String> values) {
            if (values.size() == 1) {
                return andStatusEqualTo(values.get(0));
            } else {
                addCriterion(ISysResourceTypeDAO.Status + " in", values,
                    "status");

                return this;
            }
        }

        public Criteria andStatusNotIn(List<String> values) {
            if (values.size() == 1) {
                return andStatusNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysResourceTypeDAO.Status + " not in", values,
                    "status");

                return this;
            }
        }

        public Criteria andStatusIn(String[] values) {
            if (values.length == 1) {
                return andStatusEqualTo(values[0]);
            } else {
                addCriterion(ISysResourceTypeDAO.Status + " in",
                    Arrays.asList(values), "status");

                return this;
            }
        }

        public Criteria andStatusNotIn(String[] values) {
            if (values.length == 1) {
                return andStatusNotEqualTo(values[0]);
            } else {
                addCriterion(ISysResourceTypeDAO.Status + " not in",
                    Arrays.asList(values), "status");

                return this;
            }
        }

        public Criteria andStatusIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.Status + " in ", subQueryBean, dao);

            return this;
        }

        public Criteria andStatusNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.Status + " not in ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andStatusBetween(String value1, String value2) {
            addCriterion(ISysResourceTypeDAO.Status + " between", value1,
                value2, "status");

            return this;
        }

        public Criteria andStatusNotBetween(String value1, String value2) {
            addCriterion(ISysResourceTypeDAO.Status + " not between", value1,
                value2, "status");

            return this;
        }

        public Criteria andResourceTypeIdIsNull() {
            addCriterion(ISysResourceTypeDAO.ResourceTypeId + " is null");

            return this;
        }

        public Criteria andResourceTypeIdIsNotNull() {
            addCriterion(ISysResourceTypeDAO.ResourceTypeId + " is not null");

            return this;
        }

        public Criteria andResourceTypeIdIsNotEmpty() {
            addCriterion(ISysResourceTypeDAO.ResourceTypeId +
                " is not null AND " + ISysResourceTypeDAO.ResourceTypeId +
                " <> ''");

            return this;
        }

        public Criteria andResourceTypeIdIsEmpty() {
            addCriterion("(" + ISysResourceTypeDAO.ResourceTypeId +
                " is null OR " + ISysResourceTypeDAO.ResourceTypeId + " = '')");

            return this;
        }

        public Criteria andResourceTypeIdEqualTo(long value) {
            return andResourceTypeIdEqualTo(Long.valueOf(value));
        }

        public Criteria andResourceTypeIdEqualTo(java.lang.Long value) {
            addCriterion(ISysResourceTypeDAO.ResourceTypeId + " = ", value,
                "resourceTypeId");

            return this;
        }

        public Criteria andResourceTypeIdEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.ResourceTypeId);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andResourceTypeIdEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.ResourceTypeId + " = ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andResourceTypeIdNotEqualTo(long value) {
            return andResourceTypeIdNotEqualTo(Long.valueOf(value));
        }

        public Criteria andResourceTypeIdNotEqualTo(java.lang.Long value) {
            addCriterion(ISysResourceTypeDAO.ResourceTypeId + " <>", value,
                "resourceTypeId");

            return this;
        }

        public Criteria andResourceTypeIdNotEqualToOrIsNull(long value) {
            return andResourceTypeIdNotEqualToOrIsNull(Long.valueOf(value));
        }

        public Criteria andResourceTypeIdNotEqualToOrIsNull(
            java.lang.Long value) {
            addCriterion(ISysResourceTypeDAO.ResourceTypeId + " is null OR " +
                ISysResourceTypeDAO.ResourceTypeId + " <>", value,
                "resourceTypeId");

            return this;
        }

        public Criteria andResourceTypeIdNotEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.ResourceTypeId);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andResourceTypeIdNotEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.ResourceTypeId + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andResourceTypeIdGreaterThan(long value) {
            return andResourceTypeIdGreaterThan(Long.valueOf(value));
        }

        public Criteria andResourceTypeIdGreaterThan(java.lang.Long value) {
            addCriterion(ISysResourceTypeDAO.ResourceTypeId + " >", value,
                "resourceTypeId");

            return this;
        }

        public Criteria andResourceTypeIdGreaterThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.ResourceTypeId);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andResourceTypeIdGreaterThan(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.ResourceTypeId + " > ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andResourceTypeIdGreaterThanOrEqualTo(long value) {
            return andResourceTypeIdGreaterThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andResourceTypeIdGreaterThanOrEqualTo(
            java.lang.Long value) {
            addCriterion(ISysResourceTypeDAO.ResourceTypeId + " >=", value,
                "resourceTypeId");

            return this;
        }

        public Criteria andResourceTypeIdGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.ResourceTypeId);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andResourceTypeIdGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.ResourceTypeId + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andResourceTypeIdLessThan(long value) {
            return andResourceTypeIdLessThan(Long.valueOf(value));
        }

        public Criteria andResourceTypeIdLessThan(java.lang.Long value) {
            addCriterion(ISysResourceTypeDAO.ResourceTypeId + " <", value,
                "resourceTypeId");

            return this;
        }

        public Criteria andResourceTypeIdLessThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.ResourceTypeId);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andResourceTypeIdLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.ResourceTypeId + " < ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andResourceTypeIdLessThanOrEqualTo(long value) {
            return andResourceTypeIdLessThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andResourceTypeIdLessThanOrEqualTo(java.lang.Long value) {
            addCriterion(ISysResourceTypeDAO.ResourceTypeId + " <=", value,
                "resourceTypeId");

            return this;
        }

        public Criteria andResourceTypeIdLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.ResourceTypeId);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andResourceTypeIdLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.ResourceTypeId + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andResourceTypeIdIn(long[] values) {
            if (values.length == 1) {
                return andResourceTypeIdEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(ISysResourceTypeDAO.ResourceTypeId + " in",
                    values, "resourceTypeId");

                return this;
            }
        }

        public Criteria andResourceTypeIdNotIn(long[] values) {
            if (values.length == 1) {
                return andResourceTypeIdNotEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(ISysResourceTypeDAO.ResourceTypeId + " not in",
                    values, "resourceTypeId");

                return this;
            }
        }

        public Criteria andResourceTypeIdIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andResourceTypeIdEqualTo(values.get(0));
            } else {
                addCriterion(ISysResourceTypeDAO.ResourceTypeId + " in",
                    values, "resourceTypeId");

                return this;
            }
        }

        public Criteria andResourceTypeIdNotIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andResourceTypeIdNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysResourceTypeDAO.ResourceTypeId + " not in",
                    values, "resourceTypeId");

                return this;
            }
        }

        public Criteria andResourceTypeIdIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andResourceTypeIdEqualTo(values[0]);
            } else {
                addCriterion(ISysResourceTypeDAO.ResourceTypeId + " in",
                    Arrays.asList(values), "resourceTypeId");

                return this;
            }
        }

        public Criteria andResourceTypeIdNotIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andResourceTypeIdNotEqualTo(values[0]);
            } else {
                addCriterion(ISysResourceTypeDAO.ResourceTypeId + " not in",
                    Arrays.asList(values), "resourceTypeId");

                return this;
            }
        }

        public Criteria andResourceTypeIdIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.ResourceTypeId + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andResourceTypeIdNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.ResourceTypeId + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andResourceTypeIdBetween(long value1, long value2) {
            addCriterion(ISysResourceTypeDAO.ResourceTypeId + " between",
                value1, value2, "resourceTypeId");

            return this;
        }

        public Criteria andResourceTypeIdBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(ISysResourceTypeDAO.ResourceTypeId + " between",
                value1, value2, "resourceTypeId");

            return this;
        }

        public Criteria andResourceTypeIdNotBetween(long value1, long value2) {
            addCriterion(ISysResourceTypeDAO.ResourceTypeId + " not between",
                value1, value2, "resourceTypeId");

            return this;
        }

        public Criteria andResourceTypeIdNotBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(ISysResourceTypeDAO.ResourceTypeId + " not between",
                value1, value2, "resourceTypeId");

            return this;
        }

        public Criteria andSortIsNull() {
            addCriterion(ISysResourceTypeDAO.Sort + " is null");

            return this;
        }

        public Criteria andSortIsNotNull() {
            addCriterion(ISysResourceTypeDAO.Sort + " is not null");

            return this;
        }

        public Criteria andSortIsNotEmpty() {
            addCriterion(ISysResourceTypeDAO.Sort + " is not null AND " +
                ISysResourceTypeDAO.Sort + " <> ''");

            return this;
        }

        public Criteria andSortIsEmpty() {
            addCriterion("(" + ISysResourceTypeDAO.Sort + " is null OR " +
                ISysResourceTypeDAO.Sort + " = '')");

            return this;
        }

        public Criteria andSortEqualTo(int value) {
            return andSortEqualTo(Integer.valueOf(value));
        }

        public Criteria andSortEqualTo(java.lang.Integer value) {
            addCriterion(ISysResourceTypeDAO.Sort + " = ", value, "sort");

            return this;
        }

        public Criteria andSortEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.Sort);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andSortEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.Sort + " = ", subQueryBean, dao);

            return this;
        }

        public Criteria andSortNotEqualTo(int value) {
            return andSortNotEqualTo(Integer.valueOf(value));
        }

        public Criteria andSortNotEqualTo(java.lang.Integer value) {
            addCriterion(ISysResourceTypeDAO.Sort + " <>", value, "sort");

            return this;
        }

        public Criteria andSortNotEqualToOrIsNull(int value) {
            return andSortNotEqualToOrIsNull(Integer.valueOf(value));
        }

        public Criteria andSortNotEqualToOrIsNull(java.lang.Integer value) {
            addCriterion(ISysResourceTypeDAO.Sort + " is null OR " +
                ISysResourceTypeDAO.Sort + " <>", value, "sort");

            return this;
        }

        public Criteria andSortNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.Sort);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andSortNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.Sort + " <> ", subQueryBean, dao);

            return this;
        }

        public Criteria andSortGreaterThan(int value) {
            return andSortGreaterThan(Integer.valueOf(value));
        }

        public Criteria andSortGreaterThan(java.lang.Integer value) {
            addCriterion(ISysResourceTypeDAO.Sort + " >", value, "sort");

            return this;
        }

        public Criteria andSortGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.Sort);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andSortGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.Sort + " > ", subQueryBean, dao);

            return this;
        }

        public Criteria andSortGreaterThanOrEqualTo(int value) {
            return andSortGreaterThanOrEqualTo(Integer.valueOf(value));
        }

        public Criteria andSortGreaterThanOrEqualTo(java.lang.Integer value) {
            addCriterion(ISysResourceTypeDAO.Sort + " >=", value, "sort");

            return this;
        }

        public Criteria andSortGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.Sort);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andSortGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.Sort + " >= ", subQueryBean, dao);

            return this;
        }

        public Criteria andSortLessThan(int value) {
            return andSortLessThan(Integer.valueOf(value));
        }

        public Criteria andSortLessThan(java.lang.Integer value) {
            addCriterion(ISysResourceTypeDAO.Sort + " <", value, "sort");

            return this;
        }

        public Criteria andSortLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.Sort);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andSortLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.Sort + " < ", subQueryBean, dao);

            return this;
        }

        public Criteria andSortLessThanOrEqualTo(int value) {
            return andSortLessThanOrEqualTo(Integer.valueOf(value));
        }

        public Criteria andSortLessThanOrEqualTo(java.lang.Integer value) {
            addCriterion(ISysResourceTypeDAO.Sort + " <=", value, "sort");

            return this;
        }

        public Criteria andSortLessThanOrEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysResourceTypeDAO.Sort);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andSortLessThanOrEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.Sort + " <= ", subQueryBean, dao);

            return this;
        }

        public Criteria andSortIn(int[] values) {
            if (values.length == 1) {
                return andSortEqualTo((java.lang.Integer) values[0]);
            } else {
                addCriterion(ISysResourceTypeDAO.Sort + " in", values, "sort");

                return this;
            }
        }

        public Criteria andSortNotIn(int[] values) {
            if (values.length == 1) {
                return andSortNotEqualTo((java.lang.Integer) values[0]);
            } else {
                addCriterion(ISysResourceTypeDAO.Sort + " not in", values,
                    "sort");

                return this;
            }
        }

        public Criteria andSortIn(List<java.lang.Integer> values) {
            if (values.size() == 1) {
                return andSortEqualTo(values.get(0));
            } else {
                addCriterion(ISysResourceTypeDAO.Sort + " in", values, "sort");

                return this;
            }
        }

        public Criteria andSortNotIn(List<java.lang.Integer> values) {
            if (values.size() == 1) {
                return andSortNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysResourceTypeDAO.Sort + " not in", values,
                    "sort");

                return this;
            }
        }

        public Criteria andSortIn(java.lang.Integer[] values) {
            if (values.length == 1) {
                return andSortEqualTo(values[0]);
            } else {
                addCriterion(ISysResourceTypeDAO.Sort + " in",
                    Arrays.asList(values), "sort");

                return this;
            }
        }

        public Criteria andSortNotIn(java.lang.Integer[] values) {
            if (values.length == 1) {
                return andSortNotEqualTo(values[0]);
            } else {
                addCriterion(ISysResourceTypeDAO.Sort + " not in",
                    Arrays.asList(values), "sort");

                return this;
            }
        }

        public Criteria andSortIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.Sort + " in ", subQueryBean, dao);

            return this;
        }

        public Criteria andSortNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysResourceTypeDAO.Sort + " not in ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andSortBetween(int value1, int value2) {
            addCriterion(ISysResourceTypeDAO.Sort + " between", value1, value2,
                "sort");

            return this;
        }

        public Criteria andSortBetween(java.lang.Integer value1,
            java.lang.Integer value2) {
            addCriterion(ISysResourceTypeDAO.Sort + " between", value1, value2,
                "sort");

            return this;
        }

        public Criteria andSortNotBetween(int value1, int value2) {
            addCriterion(ISysResourceTypeDAO.Sort + " not between", value1,
                value2, "sort");

            return this;
        }

        public Criteria andSortNotBetween(java.lang.Integer value1,
            java.lang.Integer value2) {
            addCriterion(ISysResourceTypeDAO.Sort + " not between", value1,
                value2, "sort");

            return this;
        }
    }
}
